﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NMoq.Core
{
    public class InterceptorSelector : Selector<IInterceptor>
    {
        #region constructors
        public InterceptorSelector()
            : base()
        {
            MethodActionMapper = new Dictionary<int, IInterceptor>();
            ActionAllMethod = false ;
            DefaultAction = new DefaultInterceptor();
        }
        public InterceptorSelector(bool actionAllMethod)
            : this()
        {
            ActionAllMethod = actionAllMethod;
        }
        #endregion

        #region overrider methods
        public override void Clear()
        {
            base.Clear();
            DefaultAction = new DefaultInterceptor();
        }
        #endregion
    }
}
